package com.File_io_.io_.writer_;

import java.io.BufferedWriter;
import java.io.FileWriter;

/**
 * @author 宋鑫宇
 * @version 1.0
 */
public class BufferedWriter_ {
    public static void main(String[] args) throws Exception{
        BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter("D:\\idea_WorkSpace\\myjava\\myjava\\src\\com\\File_io_\\hello.txt",true));
        bufferedWriter.write("hello,world");
        bufferedWriter.newLine();
        bufferedWriter.write("hello,world1");
        bufferedWriter.newLine();
        bufferedWriter.close();
    }
}
